<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="display" uri="/WEB-INF/tags/displaytag-12.tld"%>
<%@page import="com.opensymphony.module.sitemesh.Page"%>
<html>
<head>
<meta name="tab" content="students" />
<meta name="leftbar-link" content="add-batch"/>
<meta name="decorator" content="DefaultLayout"/>
<link href="<s:url value="/webwork/jscalendar/calendar-blue.css" />" rel="stylesheet" type="text/css" media="all" />
</head>
<body>
<script>

</script>
<span id="pageHeading">Add New Batch<hr/></span>

<s:form name="studentForm" id="batchForm" action="/addBatch.action" method="post">
<s:hidden name="batch.id" value="%{batch.id}"/>
<table>
<tr>
	<td>Start Date*</td>
	<td>
	<s:datepicker id="batch.startDateStr" name="batch.startDateStr" value="%{batch.StartDateStr}"  maxLength = "10" 
	size="10" format = "%d-%m-%Y" /> 
	
	</td>
	<td>End Date*</td>
	<td><s:datepicker id="batch.endDateStr" name="batch.endDateStr" value="%{batch.endDateStr}"  maxLength = "10" 
	size="10" format = "%d-%m-%Y" /> 
	</td>
</tr>
<tr>
	<td>Start Time* (HH:MM AM/PM)</td>
	<td>
<s:textfield id="batch.startTime" name="batch.startTime" value="%{batch.startTime}" size="8"/>
</td>
	<td>End Time* (HH:MM AM/PM)</td>
	<td>
<s:textfield id="batch.startTime" name="batch.endTime" value="%{batch.endTime}" size="8"/>
</td>
</tr>

<tr>
	<td>Batch for Level*</td>
	<td>
<s:select id="batch.level" required="true" name="batch.level" 
	list="#{'1':'1','2':'2','3':'3','4':'4','5':'5','6':'6','7':'7','8':'8'}" />
</td>
	<td>CI Name *</td>
	<td>
		<s:select id="batch.ciName" list = "ciList" listKey="fullName" listValue = "fullName" 
		name="batch.ciName" value="%{batch.ciName}" />
	</td>
</tr>
<tr>
	<td>Day of week</td>
	<td><s:select id="batch.dayOfWeek" required="true" name="batch.dayOfWeek" 
	list="#{'Saturday':'Saturday','Sunday':'Sunday','Monday':'Monday','Tuesday':'Tuesday','Wednesday':'Wednesday','Thrusday':'Thrusday','Friday':'Friday'}" />
	</td>
	<td>Remarks</td>
	<td><s:textfield id="batch.remarks" name="batch.remarks" value="%{batch.remarks}" /></td>
</tr>
<tr>
	<td>Status</td>
	<td><s:select id="batch.activeFlag" required="true" name="batch.activeFlag" 
	list="#{'true':'Active','false':'Inactive'}" />
	</td>
	<td></td>
	<td></td>
</tr>


<tr>
	<td colspan="4" align="center"><s:submit theme="simple" id="submitBtn" value="Add New Batch" cssClass="orange"/>
</td>
</tr>

</table>

<p>

</s:form>
</body>
</html>
